<?php
/**
 * CreateTime: 2023/8/28 16:06
 */

namespace App\Func;

class SystemFunc
{
    public function setFileOwnerAndGroup($path,$user,$group){
        if( ($_SERVER['USER'] === 'root')){
            \chown($path,$user);
//            \chgrp($path,$group);
        }
    }
}